package edu.ycxy.poetry.service.serviceImpl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.ycxy.poetry.entity.DjType;
import edu.ycxy.poetry.mapper.DjTypeMapper;
import edu.ycxy.poetry.service.IDjTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author @xin
 * @createDate 2022/3/14
 * @Description
 */
@Service
public class DjTypeServiceImpl extends ServiceImpl<DjTypeMapper, DjType> implements IDjTypeService {

    @Autowired
    private DjTypeMapper djTypeMapper;

    @Override
    public List<DjType> selectType() {
        return djTypeMapper.selectType();
    }

    //根据古文典籍的主类型所得的id查询古文典籍的具体类型
    @Override
    public List<DjType> selectByTypeId(Integer id) {
        return djTypeMapper.selectByTypeId(id);
    }
}
